import { Route, Switch,Link } from "react-router-dom"
import './App.scss';
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
import Shoped from './compontent/shoped'
import Shopping from './compontent/shopping'

function App() {

  return (
    <div className="App">
      <div className='header'>
        <div> <Link to='/'>主页</Link> </div>
        {/* <div>  <Link to='/shoped' state=''>购物车</Link>  </div> */}
      </div>
      <Switch>
        <Route exact path="/" component={Shopping}></Route>

        <Route exact path="/shoped" component={Shoped}></Route>
        
      </Switch>
    </div>
  );
}

export default App;
